home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue52 / HTML / readme.txt
Encoding:
Text File  |  1999-10-26  |  2.8 KB  |  75 lines

  1. Data-Aware HTML Controls
  2.  
  3. The Delphi Magazine
  4. Dec 1999
  5.  
  6. Steve Troxell
  7.  
  8.  
  9. To fully utilize this demo software, it is assumed that a web server is installed and
  10. running on the same machine as this software.  The demo software has been tested with
  11. Microsoft IIS and Internet Explorer.
  12.  
  13. This software uses the DBDEMOS sample database.  It is assumed that a BDE alias of
  14. "DBDEMOS" is defined.  Also realize that the DBDEMOS database could be modified through
  15. use of this software; you may want to make a copy of the database first.
  16.  
  17. 1)  FOLDERS
  18.  
  19. ..\Code\AppServer    Source code for the application server
  20. ..\Code\Router        Source code for the CGI router
  21. ..\Code\CueSoft        Trial version of CueSoft XML parsing components (Delphi 4)
  22. ..\Code\WinClient    Windows GUI client for application server
  23. ..\www            Files to be deployed as web site
  24. ..\www\cgi-bin        Executables for CGI router and application server
  25. ..\www\pages        HTML template files
  26.  
  27.  
  28. 2)  APPLICATION SERVER
  29.  
  30. 2a) Set the path to the template folder in the edit control in svrMain.pas.  In a
  31.     production environment, this would normally be configurable externally via the
  32.     registry, for example.
  33.  
  34. 2b) Make sure the project's output directory (Project | Options | Directories/Conditionals)
  35.     to set to the www\cgi-bin folder.
  36.  
  37. 2c) Compile and execute the app server project to register it as a COM server.
  38.  
  39.  
  40. 3)  CGI ROUTER
  41.  
  42. 3a) Make sure the project's output directory (Project | Options | Directories/Conditionals)
  43.     to set to the www\cgi-bin folder.
  44.  
  45. 3b) Compile the CGI router project.
  46.  
  47.  
  48. 4)  SETUP WEB SITE
  49.  
  50. 4a) Setup a virtual directory for your web server which points to the "www" folder.
  51.     FOr our purposed here, we will assume a virtual directory name of "Sample".
  52.  
  53. 4b) Launch your web browser and enter the URL 
  54.     http://localhost/sample/cgi-bin/router.exe?PI:PAGE=EventMain.sml
  55.  
  56. 4c) If you get a "Server execution failed" error, go to Windows User Manager and add the
  57.     Internet Guest Account to the Administrators group.  For IIS, this account would
  58.     be IUSR_<machinename>.
  59.  
  60.  
  61. 5)  WINCLIENT
  62.  
  63. 5a) The WinClient project is a test application which exercises the application server
  64.     without having to go through a web server.  This greatly simplifies development
  65.     and debugging.  
  66.  
  67. 5b) Compile and execute the WinClient project.  Select an SML file and click "Get Page".
  68.     A connection is made to the app server and the requested page is generated and
  69.     viewed as source in the lower memo control.  You can save the source by clicking the
  70.     "Save" button.
  71.  
  72. 5c) For pages that require URL parameters, add the parameters and values in the 
  73.     "Variables" box.  for example, to properly generate the EventShow.sml page, a
  74.     parameter called EventNum is required.  To view event #8, add "EventNum=8" in 
  75.     the "Variables" box.